package com.basic.modules.ykf.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.basic.common.annotation.DictParam;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 店铺分配规则
 *
 * @author maoheng
 * @email 15738859597@163.com
 * @date 2024-05-19 21:27:24
 */
@Data
@TableName("ykf_shop_distribute_rule")
public class YkfShopDistributeRuleEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * keyword
	 */
	@TableField(exist = false)
	private String keyword;

	/**
	 *
	 */
	@TableId
	private Long ruleId;

	/**
	 * 规则名称
	 */
	private String ruleName;

//	/**
//	 * 公司编号
//	 */
//	private String companyNo;
//
//	/**
//	 * 公司名称
//	 */
//	private String companyName;

	/**
	 * rule_json
	 */
	private String ruleJson;

	/**
	 * 默认 设置默认 1-默认 0-非默认
	 */
	private Integer defaultFlag;

	/**
	 * 创建者ID
	 */
	@TableField(fill = FieldFill.INSERT)
	private Long createUserId;
	/**
	 * 创建人名称
	 */
	@DictParam(field = "createUserId", targetField = "createUserName", dictType = "flowerName")
	@TableField(fill = FieldFill.INSERT)
	private String createUserName;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@TableField(exist = false)
	private List<RuleItem> ruleList;

}
